package com.neuedu.tools;

public class StudentTestDriver {
    public static void main(String[] args) {
        test01();
    }

    private static void test02(){

        int i;
    }

    private static void test01(){
        String str0 ="CjoAjdo,skcPmlm,Kldad132/346,LLLLLsd/amoa,moaWMDDGnv1546";
        System.out.println("原始字符串为："+str0);
        /*System.out.println("m出现的位置"+str0.indexOf('m'));


        System.out.println("字符串长度为："+str0.length());
        String str1[]=str0.split(",");
        for (String a : str1){
            System.out.println(a);
        }
        String str2[]=str0.split("[,]");
        for (String a : str2){
            System.out.println(a);
        }
        String str3[]=str0.split("/");
        for (String a : str3){
            System.out.println(a);
        }*/
        String str4=str0.replaceAll("m","p");
        System.out.println("m替换为p后字符串内容为"+str4);

        System.out.println("原始字符串为："+str0);
        System.out.println("所有大写字母转化为小写字母后字符串内容为："+str0.toLowerCase());

        System.out.println("原始字符串为："+str0);
        System.out.println("所有小写字母转化为大写字母后字符串内容为："+str0.toUpperCase());

        System.out.println("该字符串是否以Cjo开头"+str0.startsWith("Cjo"));

        String str5=str0.concat("I love you");
        System.out.print("将I love you添加到结尾后字符串内容为："+str0);

        System.out.println("该字符串是否以you结尾"+str5.endsWith("you"));

        System.out.println(str0.substring(0,3));
    }

}
